﻿using System;
using System.Collections.Generic;
using System.Text;

/*
 * Author:Conis
 * Date:
 * Description:Xml的数组节点
 */

namespace Coins.Squirrel.Nodous.Xml
{
    public class XmlNodousItem: XmlNodousComponent, INodousItem
    {
        /// <summary>
        /// 创建数组节点
        /// </summary>
        /// <param name="name">节点名称</param>
        protected internal XmlNodousItem(string name) : base(name, string.Empty) { }

        #region INodousItem 成员
        /// <summary>
        /// 创建数组子节点
        /// </summary>
        /// <param name="name">节点名称</param>
        /// <returns></returns>
        public INodousNode AddItemNode()
        {
            XmlNodousNode node = new XmlNodousNode("Item");
            this.list.Add(node);
            node.Parent = this;
            return node;
        }
        #endregion
    }
}
